package cn.itcast.util;

import lombok.Data;
/**
 * @program: springbootdemo
 * <li> @description: 异常返回结果类
 * @author: wxk
 * @create: 2020-12-22 09:11
 **/
@Data
public class ExceptionResult {

    private int status;
    private String message;
    private Long timestamp;

    public ExceptionResult(ExceptionEnums em) {
        this.status = em.getCode();
        this.message = em.getMsg();
        this.timestamp = System.currentTimeMillis();

    }
}
